package com.jn.server.controller;

import com.jn.server.MyZhuJie.MyRequest;

/**
 * @author 江南大学1033190417
 * @date 2022/4/10 22:46
 */
public class Controller {

     /*
       ConnectionThread拿到请求的路径映射到这里
     */

    @MyRequest(value = "index", type = "GET")
    public String getIndex(String name, Integer age) {
        return name + "你好" + "年龄" + age;
    }

    @MyRequest(value = "getStudent")
    public String getStudent(String id) {
        return "计科1904 18 徐康,学号:" + id;
    }
}
